Programming with QuickTime VR

| Previous | Chapter contents | Chapter top | Section top | Next |

QTVRMouseStillDownExtended

You can use the the QTVRMouseStillDownExtended function the same way you use the QTVRMouseStillDown function, to handle the user's holding down the mouse button while the cursor is in a QuickTime VR movie for which mouse-down tracking is disabled. The QTVRMouseStillDownExtended function uses the same intercept as the QTVRMouseStillDown function but has has two additional parameters.

Internally, QuickTime VR always uses the QTVRMouseStillDownExtended function instead of QTVRMouseStillDown . Developers implementing their own mouse down tracking don't need to use the extended version unless they also intercept the procedure and need the added parameters.

OSErr QTVRMouseStillDownExtended (
                     QTVRInstanceqtvr,
                     Pointpt,
                     UInt32*hotSpotID,
                     WindowPtr w,
                     UInt32 when,
                     UInt16 modifiers);
qtvr
An instance of a QuickTime VR movie.
pt
The current location of the cursor, in the local coordinates of the graphics world specified by the w parameter.
hotSpotID
On entry, a pointer to a long integer. On exit, that long integer contains the ID of the hot spot that lies beneath the specified point, or the value 0 if no hot spot lies beneath that point.
w
A pointer to a graphics world.
when
The current time, in the number of ticks since system startup, obtained by a call to TickCount().
modifiers
A short integer that contains information about the state of the modifier keys and the mouse button at the current time. See the chapter "Event Manager" in Inside Macintosh: Macintosh Toolbox Essentials for a description of the information encoded in this parameter.
function result
A result code.

DESCRIPTION

The QTVRMouseStillDown function returns, in the long integer pointed to by the hotSpotID parameter, the ID of the hot spot in the QuickTime VR movie specified by the qtvr parameter that lies directly under the point specified by the pt parameter. If no hot spot lies under that point, the long integer is set to 0. QTVRMouseStillDown also performs any other tasks that are typically performed when the user holds down the mouse button when the cursor is in a QuickTime VR movie.

You should call QTVRMouseStillDown repeatedly for as long as the user holds down the mouse button while the cursor is in the specified QuickTime VR movie.

SPECIAL CONSIDERATIONS

You need to call QTVRMouseStillDown only if you have disabled mouse-down tracking for the specified QuickTime VR movie.

SEE ALSO

Use QTVRSetMouseDownTracking (link) to change the mouse-down tracking state of a QuickTime VR movie. Use QTVRMouseDown (link) and QTVRMouseUp (next) to handle the mouse button's being clicked and released.


© 1997 Apple Computer, Inc.

| Previous | Chapter contents | Chapter top | Section top | Next |